package com.ruoyi.Awards.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.Awards.mapper.AwardsMapper;
import com.ruoyi.Awards.domain.Awards;
import com.ruoyi.Awards.service.IAwardsService;

/**
 * 项目表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
@Service
public class AwardsServiceImpl extends ServiceImpl<AwardsMapper,Awards> implements IAwardsService
{
    @Autowired
    private AwardsMapper awardsMapper;

    /**
     * 查询项目表
     * 
     * @param awardId 项目表主键
     * @return 项目表
     */
    @Override
    public Awards selectAwardsByAwardId(Long awardId)
    {
        return awardsMapper.selectAwardsByAwardId(awardId);
    }

    /**
     * 查询项目表列表
     * 
     * @param awards 项目表
     * @return 项目表
     */
    @Override
    public List<Awards> selectAwardsList(Awards awards)
    {
        return awardsMapper.selectAwardsList(awards);
    }

    /**
     * 新增项目表
     * 
     * @param awards 项目表
     * @return 结果
     */
    @Override
    public int insertAwards(Awards awards)
    {
        return awardsMapper.insertAwards(awards);
    }

    /**
     * 修改项目表
     * 
     * @param awards 项目表
     * @return 结果
     */
    @Override
    public int updateAwards(Awards awards)
    {
        return awardsMapper.updateAwards(awards);
    }

    /**
     * 批量删除项目表
     * 
     * @param awardIds 需要删除的项目表主键
     * @return 结果
     */
    @Override
    public int deleteAwardsByAwardIds(Long[] awardIds)
    {
        return awardsMapper.deleteAwardsByAwardIds(awardIds);
    }

    /**
     * 删除项目表信息
     * 
     * @param awardId 项目表主键
     * @return 结果
     */
    @Override
    public int deleteAwardsByAwardId(Long awardId)
    {
        return awardsMapper.deleteAwardsByAwardId(awardId);
    }
}
